AD Converter

ABSTRACT

An analog to digital converter is provided and includes column processing units that convert analog signal to digital signal. One or more counters count time of analog to digital conversion and one or more comparators compares the voltage of reference signal and analog signal from neuromorphic device. One or more generators generates the reference signal for the comparator.

CROSS-REFERENCE TO RELATED APPLICATIONS

This nonprovisional application claims priority from U.S. provisional patent application Ser. No. 62/782,642 filed on Dec. 20, 2018, the entirety of which is incorporated herein by reference.

BACKGROUND Field

This disclosure relates to an A/D converter for Neuromorphic devices.

Description of the Related Art

In recent years, expectations for high speed and low power consumption technologies associated with a neural network are increasing, as demands for a recognition processing or a natural language processing are growing. However, a conventional processor architecture has problems of power and calculation speed due to that system requires data transfer between a memory and the processor when it performs learning and an inference processing for the neural network. In order to solve these problems, the neuromorphic device which has a memory in a processor is studied. The neuromorphic device which is proposed at patent document WO2019096660A1 has a Non-volatile memory inside the processor. This reduces not only the power consumption for data communication but also the area of device using a multi-bits memory architecture. In this approach, each layer calculates analog signals. A high speed and low power analog to digital converter (A/D converter) become necessary, when we implement digital circuits in a same chip.

SUMMARY

In order to satisfy these requirements, this patent proposes a low power and high speed A/D converter for neuromorphic device including analog and digital processing. An analog to digital converter is provided and includes column processing units that convert analog signal to digital signal; one or more counters counting time of analog to digital conversion; one or more comparators which compares the voltage of reference signal and analog signal from neuromorphic device; and one or more generators which generates reference signal for the comparator.

Further features of the present disclosure will become apparent from the following description of exemplary embodiments with reference to the attached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a neuromorphic device array.

FIG. 2 shows an A/D convertor for the neuromorphic device array.

FIG. 3 shows an example of a counter circuit.

FIG. 4 shows an example of A/D convertor using multiple references.

FIG. 5 shows an example of an A/D convertor's timing chart.

FIG. 6 shows an example of a timing chart of an A/D convertor which counts after comparator inversion time.

FIG. 7 shows an example of a timing chart of an A/D convertor with flipped reference signal.

FIG. 8A and FIG. 8B illustrate timing charts of A/D conversion of sign bit judgement.

FIG. 9A and FIG. 9B are explanation figures of relation between A/D conversion time and PWM time.

FIG. 10A and FIG. 10B show examples of an A/D convertor which has multiple comparators for one analog signal input.

FIG. 11 shows an example of an inversion monitor.

FIG. 12A and FIG. 12B show examples of a reference signal of multiple comparators architecture.

DESCRIPTION OF THE EMBODIMENTS First Embodiment

First of all, referring to FIG. 1, a description will be given of a schematic configuration of an analog neuromorphic device. In FIG. 1, the analog neuromorphic device has resistive elements 101 representing weights of neural network and diodes 100 or switches which control input signals. This example has variable resistances 101, but other memory devices such as MRAMs and SRAMs also can be used instead of variable resistances 101.

N101 is a horizontal electrical wire which sends PWM signal X₁. And N102, N103, N10 n are also horizontal electrical wires which send PWM signal X₂, X₃, X_(n). N201 is a vertical electrical wire which sends currents of each multiplication results using the diodes 100 and the resistive elements 101. N202, N203 and N20 m are vertical electrical wires same as N201.

Resistive elements and diodes array 102 multiplies weights and input signals (X₁, X₂, X₃, . . . , X_(n)) and sums all results of the multiplications at the vertical electrical wires (N201, N202, N203 . . . N20 m). Input signals of each array are Pulse Wave Modulated (PWM) signals whose pulse widths are representing the signal levels. The outputs of the array 102 which are analog signals are converted into digital signals at the A/D converter 103. This figure is drawn as full connected layer, but these calculation methods can be applied to a convolutional layer too. Then the outputs of multiplications are summed at vertical lines as analog signals. Y₁, Y₂, Y₃, . . . , Y_(m) are the outputs after multiply-add operations done by the PWM signals (X₁, X₂, X₃, . . . , X_(n)) and the variable resistances 101. This example uses diodes, so input signals are sent to node X₁˜X_(n). But other methods such as inputting signal from gate node of switch device are also applicable instead of sending the signals to node X₁˜X₁ as long as analog outputs Y₁, Y₂, Y₃, . . . , Y_(m) can be calculated.

This is just only one example how to calculate the analog input signals, so not only pulse wave modulation (PWM) signals but also the other analog input signals such as amplitude modulation signals can be used with the proper input method which depends on an input signal type.

The outputs of multiply-add operations Y₁, Y₂, Y₃, . . . , Y_(m) are converted into digital signals by A/D converters 103 at each columns. In this figure, the case of full connected layers is shown as an example, but same A/D conversion approach is applicable for convolutional layers too.

FIG. 2 shows the schematic of A/D converter. In this example, the A/D converter 103 comprises a lookup table (LUT) 201 which contains a non-linear and a linear function related to an activation function for a neural network such as hyperbolic tangent or sigmoid function. The A/D converter also includes a comparator 204 which compares the output of j th array Y_(j) and a reference signal Ref which comes from a low pass filter (LPF) 203. The A/D converter 103 further includes a counter 205 which counts time from or until a time when the comparator's output of comparator 204 inverts. This example uses one comparator 204, counter 205 and DAC 200 per one neuromorphic device column. However, it should be understood that using two or more comparators, counters and DACs per one analog input signal can be applied too. This example uses a DAC and a LUT for generating reference signal (Ref), but other methods which can generate target signal are also applied. As long as the counter can count time, any method is applicable. For example, a memory which captures data relating to time or a counter such as ripple counter also can be used as a counter 205.

FIG. 5 shows a timing chart of an A/D converter which counts time from start time of A/D conversion to comparator inversion time. A/D conversion starts from t₀ and the comparator in the A/D convertor inverts the output at t₁. The counter counts the time from t₀ to t₁, and a reference signal of comparator Ref changes during A/D conversion. This reference signal is generated based on inverse functions of activation functions for neural network. The comparator inverts the output at t₁ when a magnitude of reference signal Ref become bigger than the output of array Y_(j). Then the counter stores the counting value. This example uses a count up method, but any count methods may be used as long as that comparator's inversion timing is used because the conversion time can be calculated with the comparator inversion timing.

FIG. 6 shows the other example of counting time from the inversion of comparator to the end of A/D conversion. This example uses 8 bits A/D converter and down count value from t₁ to t₂ indicating that 252 is a final result of A/D converter. In this case t₂ time is fixed, so the equivalent value of FIG. 5 result can be obtained by using this count down method. As the above example shows, any method can be used as long as the method uses the comparator inversion timing.

FIG. 7 shows the example of the reference signal which is horizontally flipped inverse activation function. By using the flipped waveform as shown in FIG. 7, the higher input signal level is, the faster the timing of comparator inversion is in the A/D conversion. The A/D convertor sends the high level input result to the next processing step or to the next neural network layer. This example uses 8 bits A/D converter and the count value from t₀ to t₃. 254 is a final result of A/D converter. This example uses down count method from full count, but other methods such as count up from zero and subtracting the value from full scale are also applicable, as long as the calculation uses a comparator inversion timing.

FIG. 9A shows an example of a timing chart when A/D conversion time and PWM processing time are proportional to a certain input signal level which corresponds with FIG. 5 and FIG. 6. The period described as “A/D” is required time of A/D conversion which depends on the magnitude of analog input signal from the neuromorphic device column. The period described as “PWM” are the required time of generating PWM signal (data transfer) at next stage. This example assumes the PWM as the next process, but other operations can be applied as a next process too. In FIG. 9A, an example of high output level Y_(i) of array 102 needs a longer time to reach at cross point between reference signal and input signal. The result is A/D conversion time become longer than the case of low output level. In addition, PWM generation time in next layer also takes a longer time to generate a long pulse. As a result of these process, neural network processing time t_(total_2) which includes A/D conversion and PWM generation becomes long. On the other hand, in FIG. 9A, Y_(j) is an example of low level output of array 102. The A/D conversion time which is illustrated in FIG. 6 or FIG. 5 for low level output of array 102 is short. Because it reaches at cross point between reference signal and input signal soon after the time A/D conversion starts. As a result, A/D conversion time become shorter than the case of high level output such as Y_(i) in FIG. 9A. In addition, PWM generation time in next layer also become shorter time to generate short pulse than the case of high level output like Y_(i). As a result of these processes, neural network processing time t_(total_1) which includes A/D conversion and PWM generation becomes a shorter time. However, in order to operate next layer's process, the outputs of other columns are necessary, so faster columns have to wait for the finishing of the slowest column process. As a result, the case A/D conversion time become A/D conversion time and PWM generation time has proportional relation for a certain output level of array 102 (the case PWM generation time becomes longer when A/D conversion time becomes longer), it is difficult to make the calculation of a neural network faster.

FIG. 9B is an example of timing chart when A/D conversion time and PWM generation time have inverse proportion relation which corresponds to FIG. 7. As shown in FIG. 7, to use reference signal Ref which moves from high level to low level makes an A/D conversion time for high input signal makes it shorter than the case of low input signal because the reference signal reaches a cross point earlier than shown in the cases illustrated in FIG. 5 or FIG. 6. On the other hand, PWM generation needs a longer time to generate long pulses when a high input signal comes. As shown in this example, when A/D conversion time and PWM generation time have inverse proportion relation for a certain signal level (the PWM generation time becomes shorter when A/D conversion time becomes longer), even in the case that a high input signal Y_(i) comes, a total time of A/D conversion and PWM generation t_(total) become faster than the case of FIG. 9A. As a result, in FIG. 9B, conversion time for low input signal Y_(j) makes longer than the case of high input signal Y_(i) because reference signal reaches at cross point later than FIG. 5 or FIG. 6 cases. On the other hand, PWM generation time becomes short because PWM generator generates a short pulse for a low level signal. As a result, the total time t_(total) which includes A/D conversion time and PWM generation time is almost same as the case of Y_(i) when inputs signal is high. In this method, total time becomes almost constant irrespective of the magnitude of the input signal and waiting time for other columns operation which is slower than others can be removed. As a point of view of total processing, it makes a total calculation time faster. Here, A/D converters 103 send each result independently when each columns finish the A/D conversion. But it is applicable to insert the other process between A/D conversion process and PWM generation process.

Second Embodiment

FIG. 4 is a block diagram showing the configuration of the second embodiment. It is a configuration which adds a resister for sign bit 400 and a logic circuit which controls a write timing 401 of singed bit resister 400. In FIG. 4, AND gate 401 is used as an example of the logic circuit which controls a write timing, but the other logic circuit also can be used. FIG. 8A and FIG. 8B illustrate timing charts of this circuit. In FIG. 8A, reference signal Ref is set at a middle level of reference signal dynamic range at the time between t₄ and t₅ to check the sign bit result. Then comparator compares the two levels between the output of array Y_(j) and the reference signal Ref_H. For example, in the case of tank is used as an activation function, the middle level of reference is around 0. Bit_en is set to Hi in order to activate the comparator output signal for the register 400 from t₄ to t₅. In other periods, Bit_en is set to Lo and masks the comparator output signal. The AND gate can be replaced by the other logic circuit which can mask the comparator output. At the time of t₅, the reference signal is switched based on the result of the judgement using median level. In the example of FIG. 8A, Y_(j) level is higher than the reference signal Ref at t₄, so the comparator doesn't invert the output. Then at t₅, the reference signal Ref_H for Hi signal is selected depending on the result at t₄. On the other hand, in FIG. 8B, Y_(j) level is lower than the middle level of the reference signal Ref at t₄ and comparator inverts the output. Then At t₅, reference signal Ref_L for the Lo signal is selected. Here, Ref_H is the horizontally flipped signal of inverse activation function and Ref_L is vertically flipped signal of Ref_H. Sending the result of the A/D conversion at each column when each column's A/D conversion finishes to the next processing stage, it is possible to shorten the total time which includes the time of next processing and the A/D conversion time.

Third Embodiment

FIG. 10A and FIG. 10B show examples that has two or more comparators and reference signals per one column and shortens the A/D conversion time. FIG. 10A shows an example that has a counter per one comparator. In this figure, the comparator 204 uses a reference signal for a high level input and the comparator 1001 uses a reference signal for a low level input. About a signal path of reference signal for the high level, the conversion result is recorded as digital signal by flip-flop 301 and data generator 300 using time counts. Then that digital data goes to output selector 1004. The data path of reference signal for the low level is also processed in a same way. In this example, the comparator output using the high level reference signal Ref_H2 is named as Comp_out_H, the comparator output using the low level reference signal Ref_L2 is named as Comp_out_L, the A/D conversion result which uses Ref_H2 is Count_H, and the A/D conversion result which uses Ref_L2 is Count_L. The selector 1004 selects the output between Count_H and Count_L with a control signal from the inversion monitor 1000. The inversion monitor 1000 monitors the inversions of comparator outputs Comp_out_H and Comp_out_L and select the counter value which inverts first. Only the first conversion result is used as a final result, so another A/D conversion can be stopped after that one comparator inverts output for power saving. FIG. 12A is a timing chart of the A/D conversion in FIG. 10A. In this example, the input signal Y_(j) is higher than middle level of the reference signal range. The A/D conversion starts at t₃₁ and the reference signal for high level Ref_H reaches at the same level of Y_(j) at t₃₂. The comparator output Comp_out_H inverts at t₃₂ and the counter value count_H is fixed. Inversion monitor 1000 detect inversion of Comp_out_H and outputs the select signal Out_sel. Then Selector 1004 selects the output form Count_H as A/D conversion results. FIG. 10B shows the other example of the A/D conversion using two or more reference signals. FIG. 10B is a configuration which shares the counter between two comparators in FIG. 10A. A control signal Out_sel for counter circuits is generated after the output of comparator 204 or 1001 is inverted. FIG. 12B is a timing chart of FIG. 10B. As with FIG. 12A, t₃₁ is a start time of A/D conversion and t₃₂ is a time that reference signal for high level input Ref_H reach at the same level of A/D inputs Y_(j). t₃₃ is a timing when a reference signal for low level input Ref_L crosses the input signal Y_(j). After the time t₃₂ when either comparator inverts first, inversion monitor 1000 decides the Out_sel based on the comparator output. Then counter records the time of A/D conversion using a trigger signal based on Out_sel. In this example, the A/D conversion at low level side continues even after that another comparator inverted, but it is applicable to stop the other A/D conversion after that one of comparators inverted. FIG. 11 shows the function of the inversion monitor 1000. The inversion monitor 1000 has input nodes for comparator outputs Comp_out_H and Comp_out_L. Inversion Monitor 1000 monitors the output of both comparators, detects inversion signal, and judges which comparator is inverted first. Then it outputs a signal Id_signal which controls the selector. 

What is claimed is:
 1. An analog to digital converter which converts analog signal output from a neuromorphic device comprising: a counter counting timing for analog to digital conversion; a comparator which compares the voltage of reference signal with the analog signal output from the neuromorphic device and output the comparison result to the counter; a generator which generates the reference signal for the comparator.
 2. The analog to digital converter according to claim 1, wherein the reference signal is generated by using one or more look up tables which one or more control signals for generating the reference signal are inputted into and digital to analog converters.
 3. The analog to digital converter according to claim 1, wherein the reference signals are related to inverse activation functions which include at least one of horizontal flipped waveform and vertical flipped functions.
 4. The analog to digital converter according to claim 1, wherein the comparator compares the analog signal with a median value of a plurality of signals included in the reference signal, and compares the analog signal with one of a plurality of signals included in the reference signal.
 5. The analog to digital converter according to claim 1, wherein the comparator comprises a plurality of comparators, and the generator comprises a plurality of generators, the plurality of generator generate a plurality of reference signals for the plurality of comparators, the plurality of reference signals are different from each other.
 6. The analog to digital converter according to claim 1, further comprises a monitor which monitors the comparator outputs for a same analog input signal.
 7. The analog to digital converter according to claim 1, wherein the A/D converter sends the A/D convertor output to a next processing unit in the order of the A/D conversion is completed.
 8. The analog to digital converter according to claim 1, wherein the A/D conversion time and PWM generation time have opposite processing time relation as to an input signal magnitude.
 9. The analog to digital converter according to claim 1, further comprises the neuromorphic device.
 10. The analog to digital converter according to claim 3, wherein the reference signals which are related to inverse activation functions includes the functions which are generated by flipping, cropping or both flipping and cropping the inverse activation function. 